package org.dreamwork.tools.simulator.connector.data.schema;

import org.dreamwork.persistence.DatabaseSchema;

public class DummyInterfaceSchema extends DatabaseSchema {
    public DummyInterfaceSchema () {
        tableName = "dummy_interface";
        fields = new String[] {"id","name","uri", "method", "return_headers", "return_code","return_type", "return_value","remark"};
    }

    @Override
    public String getCreateDDL () {
        return "CREATE TABLE dummy_interface (" +
                "    id             TEXT    NOT NULL PRIMARY KEY," +
                "    name           TEXT," +
                "    uri            TEXT," +
                "    method         TEXT," +
                "    return_headers TEXT," +
                "    return_code    INTEGER," +
                "    return_type    TEXT," +
                "    return_value   TEXT," +
                "    remark         TEXT" +
                ")";
    }

    @Override
    public String getPrimaryKeyName () {
        return "id";
    }
}